package org.csu.molediary.api.service;


import org.csu.molediary.api.common.CommonResponse;
import org.csu.molediary.api.entity.Account;

import java.util.List;

public interface AccountService {

    //登录
    CommonResponse<Account> insertNewAccount(Account account);

    //通过id查询某个account信息
    CommonResponse<Account> selectAccountById(String userid);

    //更新某account信息
    CommonResponse<Account> updateAccountInformation(Account account);

    //模糊查询用户名字
    CommonResponse<List<Account>> getAccountByNameLike(String namelike);
}
